﻿using Microsoft.Xna.Framework.Graphics;
using Terraria.ModLoader;

namespace MoLingOverhaul.Common.Helpers
{
    public static class TextureHelper
    {
        private const string BaseTexturePath = "MoLingOverhaul/Assets/Textures/UI";
        public static Texture2D GetTexture(string textureName)
        {
            string texturePath = $"{BaseTexturePath}/{textureName}";
            return ModContent.Request<Texture2D>(texturePath).Value;
        }
    }
}
